import request from '@/utils/request'


const BASE_URL='/admin/system/sysChargeDetail';

export default{

    getPageList(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    getDetailById(id){
        return request({
            url:`${BASE_URL}/getDetailById/${id}`,
            method:'get',
            
        })
    },

    updateDetailById(chargeDetail){
        return request({
            url:`${BASE_URL}/updateDetailById`,
            method:'post',
            data:chargeDetail
        })
    },

    removeDetailById(id){
        return request({
            url:`${BASE_URL}/removeDetailById/${id}`,
            method:'delete',
            
        })
    },

    removeDetailByIds(ids){
        return request({
            url:`${BASE_URL}/removeDetailByIds`,
            method:'delete',
            data:ids
        })
    },

    addDetail(chargeDetail){
        return request({
            url:`${BASE_URL}/addDetail`,
            method:'post',
            data:chargeDetail
        })
    },





    
}